<?php if(count($model->getErrors()) > 0):?>
	<div class="alert alert-error">
		<?php echo CHtml::errorSummary($model); ?>
	</div>
<?php endif;?>
<?php echo CHtml::beginForm(); ?>
	<fieldset>
		<legend>Авторизация</legend>
		<?php echo CHtml::activeLabel($model,'email'); ?>
		<?php echo CHtml::activeTextField($model,'email'); ?>
		
		<?php echo CHtml::activeLabel($model,'password'); ?>
		<?php echo CHtml::activePasswordField($model,'password'); ?>
		<br>
		<?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>
		<?php echo CHtml::activeLabel($model,'rememberMe'); ?>
		
		<?php echo CHtml::submitButton('Войти'); ?>
		или <a href="<?php echo $this->createUrl('/user/admin/register')?>">Зарегистрироваться</a>
	</fieldset>
<?php echo CHtml::endForm(); ?>